package ModelImplementation

import "salaryPayment/Model"

type DirectMethod struct {
	itsBank    string
	itsAccount string
}

func NewDirectMethod(bank, account string) Model.PaymentMethod {
	return &DirectMethod{itsBank: bank, itsAccount: account}
}

func (dm *DirectMethod) GetBank() string {
	return dm.itsBank
}

func (dm *DirectMethod) GetAccount() string {
	return dm.itsAccount
}

func (dm *DirectMethod) Pay(pc Model.Paycheck) {
	pc.SetFiled("Disposition", "Direct")
}


